export const basicColumns = [
  {
    type: "selection",
    width: 40,
    fixed: "left",
    "reserve-selection": true
  },
  // {
  //   type: 'index',
  //   label: '序号',
  //   fixed: 'left',
  //   width: 60,
  //   align: 'center',
  // },
  {
    prop: "apptUserSource",
    label: "记录来源",
    width: 100
  },
  {
    prop: "apptUserNo",
    label: "OPENID"
  },
  {
    prop: "apptUserName",
    label: "微信昵称"
  },
  {
    prop: "apptPersonNameList",
    label: "预约人姓名"
  },
  {
    prop: "apptDate",
    label: "预约日期"
  },
  {
    prop: "apptStartTime",
    label: "预约时段"
  },
  {
    prop: "createTime",
    label: "预约提交时间"
  },
  {
    prop: "approveResult",
    label: "申请审批状态"
  },
  {
    prop: "operation",
    label: "操作",
    width: 100,
    fixed: "right",
    align: "center"
  }
];
export const detailColumns = [
  {
    prop: "userName",
    label: "姓名",
    width: 100
  },
  {
    prop: "mobile",
    label: "联系电话"
  },
  {
    prop: "cardType",
    label: "证件类型",
    width: 100
  },
  {
    prop: "idCard",
    label: "证件号"
  },
  {
    prop: "carNum",
    label: "车牌号",
    width: 140
  }
];

// 使用枚举
export const APPT_USER_SOURCE_OPTIONS = [
  { value: undefined, label: "全部" },
  { value: 0, label: "微信" }
];

// 使用枚举
export const APPROVE_RESULT_OPTIONS = [
  { value: undefined, label: "全部" },
  { value: 0, label: "待审批" },
  { value: 2, label: "审批通过" },
  { value: 1, label: "审批未通过" },
  { value: 4, label: "预约已取消" },
  { value: 3, label: "过期未审批" }
];

export const basicFormData = [
  {
    formType: "INPUT",
    prop: "apptUserNo",
    label: "OPENID",
    placeholder: "请输入OPENID"
  },
  {
    formType: "INPUT",
    prop: "apptUserName",
    label: "微信昵称",
    placeholder: "请输入微信昵称"
  },
  {
    formType: "INPUT",
    prop: "apptPersonNameList",
    label: "预约人员姓名",
    placeholder: "请输入预约人员姓名"
  },
  {
    formType: "SELECT",
    prop: "apptUserSource",
    label: "记录来源",
    placeholder: "请选择记录来源",
    option: APPT_USER_SOURCE_OPTIONS
  },
  {
    formType: "DATE_PICKER",
    prop: "beginTime",
    label: "预约开始日期",
    type: "date",
    valueFormat: "YYYY-MM-DD HH:mm:ss",
    placeholder: "请选择日期"
  },
  {
    formType: "DATE_PICKER",
    prop: "endTime",
    label: "预约结束日期",
    type: "date",
    valueFormat: "YYYY-MM-DD 23:59:59",
    placeholder: "请选择日期"
  },
  {
    formType: "SELECT",
    prop: "approveResult",
    label: "申请审批状态",
    placeholder: "请选择申请审批状态",
    option: APPROVE_RESULT_OPTIONS
  }
];
